<?php
	$this->menu = array(
		array('label'=>'Create cargo','url'=>array('create')),
		array('label'=>'List cargo','url'=>array('list')),
	); 
?>
<!-- Column 1 -->
<?php
	$this->beginClip('information');
	$this->beginWidget('zii.widgets.CPortlet', array(
		'title'=>'Cargo information',
		'id'=>'cargo_info',
	));
	?>
	<table>
		<tr>
			<th>Warehouse cargo:</th>
			<td><?php $model->getCargoByStatus('warehouse'); ?></td>
		</tr>
		<tr>
			<th>Pending cargo:</th>
			<td><?php $model->getCargoByStatus('pending'); ?></td>
		</tr>
		<tr>
			<th>Arrived cargo:</th>
			<td><?php $model->getCargoByStatus('arrive'); ?></td>
		</tr>
		<tr>
			<th>Collecting cargo:</th>
			<td><?php $model->getCargoByStatus('collecting'); ?></td>
		</tr>
		<tr>
			<th>Self-delivered cargo:</th>
			<td><?php $model->getCargoByStatus('arrive'); ?></td>
		</tr>
		<tr>
			<th>Total cargo:</th>
			<td><?php $model->getCargoByStatus('arrive'); ?></td>
		</tr>
	</table>
<?php $this->endClip();$this->endWidget();?>


<?php
	$this->col1 .= $this->clips['information']; 
?>
<?php 
$cs = Yii::app()->getClientScript();

$cs->registerScript('cargo#view',$script);
?>